He has been a powerful legislator, introducing almost 20 bills in his time in government, including the Historical Sexual Offences (Pardons and Disregards) (Scotland) Bill, the Human Trafficking and Exploitation (Scotland) Bill, the Management of Offenders (Scotland) Bill, the Vulnerable Witnesses (Criminal Evidence) (Scotland) Bill and the Domestic Abuse (Scotland) Bill.