 In 1806 he became resident commissioner of Deptford and Woolwich Dockyards, which he superintended for the next seventeen years.He moved to Chatham Dockyard in 1823, and he retired from there on 4 May 1829 with the rank of Rear-Admiral.He was made a Knight Commander of the Royal Guelphic Order on 24 October 1832.