In Celaya, Hidalgo was named Captain General of America by his staff, making it an important element of the Independence War, as cajeta was easily stored and transported, and lasted for several months without decomposing, thus becoming an important food complement for the poorly fed troops.