 He was Chairman of the Scottish Coalfields Committee from 1942 to 1944.He was Solicitor General for Scotland from 1941 to 1945, and was elected at a closely fought by-election in 1943 as the Unionist Member of Parliament (MP) for Midlothian and Peebles North.He was knighted in 1941.