opportunity to unseat the new regime when, on December 6, the Patricians rebelled against the regime in what became known as the Mutiny of the Braids. A counterinsurgency attack by Colonel José Rondeau quelled the revolt by December 11, however, and Funes was formally charged with sedition. The Junta was formally replaced by the Triumvirate on December 22, and Funes' sentence was commuted the following January. Elder statesman Funes returned to Córdoba, where he authored one of the nation's first history texts, Ensayo de Historia Civil del Paraguay, Buenos Aires y Tucumán (Essay on the Civil History of Paraguay, Buenos Aires, and Tucumán). Writing became an occupation for the aging clergyman, and he refused the honor of representing his province at the 1816 Congress of Tucumán. The congress provoked a revolt late in the year by League of the Free Peoples supporter José Gervasio Artigas, and Funes accepted an appointment by Supreme Director Juan Martín de Pueyrredón as Governor of Córdoba. He later also accepted a post in replacement of one of two Córdoba representatives who resigned upon the relocation of the Congress of Tucumán to Buenos Aires in 1817. Funes afterwards directed the congressional journal, El Redactor. He remained a monarchist, however, and advanced the notion of a constitutional monarchy during a constitutional assembly held in 1819. Unable to prevail in this proposal, Funes nonetheless supported the new constitution, with which he shared a reliance on centralized government. He wrote its preamble, as well as the proclamation presented in its support to provincial leaders. The 1819 Constitution, mainly due to its Unitarian bias, was rejected by most provinces in the hinterland, and those in the east formed a Liga Federal in revolt. Unitarian forces were defeated at the Battle of Cepeda of 1820, and Funes served as the national government's envoy to negotiate the February 23 Treaty of Pilar, upon which the constitution was rescinded. Funes remained in Buenos Aires, and was appointed Trade Representative to Gran Colombia by Governor Martín Rodríguez. He became acquainted with President Simón Bolívar during his stay in Bogotá, and attempted in vain to persuade Governor Rodríguez to take part in the Congress of Panama, which President Bolívar had initially convened for December 1824, and which was, itself, postponed until 1826. Funes returned to assist in Governor Rodríguez's bid for national unity, the General Congress of 1824; the congress ultimately resulted in the Constitution