During this period Caxias trained his soldiers, re-equipped the army with new guns, improved the quality of the officer corps, and upgraded the health corps and overall hygiene of the troops, putting an end to epidemics.