The ad interim government of Texas operated from March 16 to October 22, 1836. The Convention of 1836 declared independence and framed the Constitution of the Republic of Texas, but the advance of the Mexican army made immediate ratification and establishment of constitutional government impossible. The last act of the convention was the selection of an ad interim government with David G. Burnet, president; Lorenzo de Zavala, vice president; Samuel P. Carson, secretary of state; Bailey Hardeman, secretary of treasury; Thomas J. Rusk, secretary of war; Robert Potter, secretary of the navy; and David Thomas, attorney general. This temporary government, without any legislative or judicial departments, fled with the people in the Runaway Scrape and was located successively at Washington-on-the-Brazos, Harrisburg, Galveston Island, Velasco, and Columbia; nevertheless, it continued to function until regular elections could be held and the constitution ratified. One of its major concerns was controlling the revolutionary army and dealing with low supplies and morale. It was also in place when the two treaties of Velasco were signed. The ad interim government ended with the inauguration of Sam Houston as president on October 22, 1836.