 After losing his seat in 1857, he was re-elected in 1859, and appointed Financial Secretary to the Treasury; in 1860 he was made finance minister in India.On returning from India, he was re-elected to parliament for Wick in 1865.He was defeated in 1868, but in 1873 he was returned for Orkney and Shetland, and retained his seat till 1885.