He served as second-in-command of the fleet sent to bombard Algiers in 1816. The Dutch king awarded him the commander's cross of the coveted Military Order of William for his distinguished conduct. In May 1816, he was appointed to command the North American Station, living in Halifax, Nova Scotia. In 1818, he was nominated a knight of the Neapolitan Order of St Januarius, and he returned to the United Kingdom in 1819. In 1820, he was briefly Member of Parliament for Berwick-upon-Tweed.