After joining the Scottish National Party in 1997, aged seventeen, he stood at the 2010 general election as the SNP candidate for Glasgow North. In 2012, he was elected as National Secretary of the SNP until he stood down in 2016. He headed the "Yes" campaign in the Kelvin area of Glasgow during the 2014 referendum on Scottish independence.