Continuing his march to the north, he took Potosí on 21 June and Vilcapugio on 27 September where they awaited reinforcement. Meanwhile, rebel scouts, under the command of Colonel Cornelio Zelaya, defeated a royalist squadron at Pequereque on 19 June. Belgrano named colonel Figueroa as governor of Potosí, colonel Álvarez de Arenales as governor of Cochabamba and colonel Warnes in Santa Cruz. As president of Charcas he named Francisco Antonio Ortiz de Ocampo. Knowing that Goyeneche and Joaquín de la Pezuela, an able and experienced soldier, had the advantage, he negotiated with Goyeneche a 40-day armistice. The Assembly in Buenos Aires and the viceroy of Peru, José Fernando de Abascal, disapproved of this agreement. The royalists attacked by surprise, disregarding the agreement, before the arrival of reinforcements at the Battle of Vilcapugio on 1 October 1813.