 He was elected to the United States Senate as a Democratic Republican in 1812.He served as chairman of the United States Senate Committee on Pensions during the Fifteenth Congress.After he left Congress, he was appointed a State commissioner to survey routes for canals and railways in Pennsylvania in 1825.