 Complete the following phrase:  He fought in the Battle of Huaqui in the regiment led by Juan José Viamonte, and then the Battle of Las Piedras, where he was promoted to Captain, the Battle of Tucumán, after which he was promoted to Sergeant Major, and the Battle of Salta. He accompanied the third campaign to Upper Peru, fighting in the disastrous 