 Complete the following phrase:  On December 3, 1824, six days before the Battle of Ayacucho, Cosme Pacheco was promoted to the rank of Captain. The First Squad of the renamed Hussars of Junin participated in the patriots victory against the Spanish forces commanded by Viceroy Jose de la Serna, who after the battle where he was gravely wounded, capitulated the Spanish sovereignty in Peru, allowing his return to Spain. Despite the heroic participation of many pro-independence Peruvians in both battles, which ended the Spanish domain in Peru and in South America, there was no immediate recognition. It was not until September 18, 1829 that the Government of Peru, headed by Agustín Gamarra, issues a decree recognizing Pachecos contribution to the cause of independence, along with all Peruvians who fought at the 