Bustamante's popularity began to wane after he captured and executed Guerrero (despite having already orchestrated the Camera of Deputies to declare him morally unfit to govern). A revolt began in January 1832 to remove Bustamante from power and replace him with Manuel Gómez Pedraza who had been the legitimate winner of the election against which Guerrero revolted. The rebels offered command of their army to Santa Anna which he accepted. The revolt was short and successful; by December Bustamante had resigned and Gómez Pedraza had assumed power. Gómez Pedraza was a polarizing figure. When he called congress into session in 1833, too few representatives showed up and he formed a private council, of which Quintana Roo was a secretary, to conduct the business of congress until elections could be held in March.