By the end of 1813, Juan Larrea (a rich and influential friend of Alvear and of British commerce) replace Álvarez Jonte, who was named to lead the commission investigating the military defeats at Vilcapugio and Ayohuma.