Guzmán then left for Jalapa, where he struck a deal with the rebels, while Luis Batres Juarros convinced president Paredes to deal with Carrera. Back in Guatemala City within a few months, Carrera was commander-in-chief, backed by military and political support of the Indian communities from the densely populated western highlands. During the first presidency from 1844 to 1848, he brought the country back from excessive conservatism to a moderate regime, and – with the advice of Juan José de Aycinena y Piñol and Pedro de Aycinena – restored relations with the Church in Rome with a Concordat ratified in 1854.