In 1809, he was involved in the expedition to Walcheren. After the Battle of Waterloo, the Duke of Wellington appointed him Director-General of the Royal Artillery.