After failing to put down the insurgency, Bustamante officially surrendered power through the Estanzuela Accords on October 6, 1841. A military junta was formed which wrote the Bases of Tacubaya, a plan which swept away the entire structure of government, except the judiciary, and also called for elections for a new constituent congress meant to write a new constitution. The subsequent congress which was installed on June 10, 1842, was strongly federalist, against the wishes of the organizers of the Bases of Tacubaya who were strongly centralist. Santa Anna began to scheme to dissolve the congress, and left Bravo in charge of the presidency on October 26, 1842. Bravo was not in accord with Santa Anna's schemes for while he too was a centralist, he did not wish to overturn the results of the election which had led to the strongly federal congress. Tornel the minister of war was the real power at the capital at this time, being the favorite of Santa Anna President Bravo assured a commission sent by congress, that he would accept the new constitution, and congress continued working on its draft, when its work was interrupted by a pronunciamiento in the obscure town of Huejotzingo, calling for the dissolution of congress, and demanding the installation of a council of notables to work on the new constitution. Minister Tornel was among the conspirators promoting the revolution. In spite of his earlier reluctance to go against congress and reassurance towards them, at the decisive hour, Bravo sided with the insurrectionists and on December 19, he signed a decree signed by Bocanegra, Velez, Gorostiza, and Tornel dissolving congress and decreeing that they be replaced by a Junta of Notables. In the early dawn hours of that day there had been skirmishes in the Ciudadela and throughout the morning the Celaya Battalion had remained stationed in the corridor contiguous to the hall where congress met in order to prevent the deputies from entering. Most of them met at the home of the president of the congress Francisco Elorriaga and they directed a memo to President Bravo, asking him if they could continue their sessions, and the reply explained that "every garrison has pronounced against congress except myself and the commandant general of Mexico State." Most deputies then agreed to publish a manifesto explaining that the executive which had long been interfering with their labors had now used armed forces