Bolivar, having news of Olañeta's actions, took advantage of the dismantling of the royalist defensive system so that he "moved the whole month of May to Jauja", and faced José de Canterac, who was isolated in Junín on 6 August 1824. Unrelenting prosecution of the war started, with the consequent desertion of 2700 royalists, who immediately went over to the independentists' lines. Finally, on 7 October 1824, having his troops right in front of the doors of Cusco, Bolívar gave general Sucre the command of the new battlefront, which followed the course of the Apurímac River, and he withdrew to Lima in order to negotiate more loans to keep the war going in Peru, and to receive a Colombian division of 4000 men given up by Páez which would arrive after Ayacucho.