He was appointed naval officer of Philadelphia by President Andrew Jackson and served from 1826 to 1829.
Andrew Jackson designated him as the naval commander of Philadelphia, and he held that position from 1826 to 1829.