He was formerly Leader of the Scottish Liberal Democrats, Member of Parliament (MP) for Orkney and Shetland, Member of the Scottish Parliament (MSP) for Orkney, the first Deputy First Minister of Scotland in the Scottish Executive and Advocate General for Scotland.