In 1824 he was transferred to the fort at Chascomús, and began his study of paleontology. General Carlos María de Alvear ordered that he accompany Lavalle and his troops during the 1826 war with Brazil. He was promoted to Army Surgeon Major that year and transferred to Luján in 1828 to be a physician to police and military troops.