 He was appointed marshal of the United States District Court for the Western District of Pennsylvania by President Martin Van Buren on May 20, 1839, and served until May 6, 1841.He was elected to the Twenty-seventh Congress.He was again appointed United States Marshal for the Western District of Pennsylvania on December 14, 1847, and served until April 3, 1848, when he resigned.