In Scotland a sheriff principal (pl. sheriffs principal) is a judge in charge of a sheriffdom with judicial, quasi-judicial, and administrative responsibilities. Sheriffs principal have been part of the judiciary of Scotland since the 11th century. Sheriffs principal were originally appointed by the monarch of Scotland, and evolved into a heritable jurisdiction before appointment was again vested in the Crown and the monarch of the United Kingdom following the passage of the Heritable Jurisdictions (Scotland) Act 1746. Under the Sheriff Courts (Scotland) Act 1971 (as amended), each sheriff principal is appointed by the monarch of the United Kingdom on the advice of the First Minister of Scotland, who is advised by the Judicial Appointments Board for Scotland. As of May 2017 there were six sheriffs principal, each of whom has responsibility not only as a judge, but for the administration of justice in their respective sheriffdoms. Sheriffs principal have to ensure the effective running of the sheriff courts and justice of the peace courts within their jurisdiction. Following the passage of both the Courts Reform (Scotland) Act 2014 and the Judiciary and Courts (Scotland) Act 2008, sheriffs principal are subject to the authority and direction of the Lord President of the Court of Session as Head of the Judiciary of Scotland. Sheriffs principal hold additional judicial offices, including the Sheriff Principal of Lothian and Borders who is Sheriff in Chancery, and President of the Sheriff Personal Injury Court. All of the sheriffs principal are Appeal Sheriffs and ex officio members of the Sheriff Appeal Court. Outside their judicial office, each sheriff principal holds several other offices ex officio, including Commissioner of Northern Lighthouses and General Commissioner of Income Tax, with each sheriff principal having a ceremonial role in their respective sheriffdom that means they outrank all but members of the royal family and the Lord Lieutenant. When researching the history of the sheriffs principal there is much confusion over the use of different names to refer sheriffs in Scotland. Sheriffs principal are those sheriffs who have held office over a sheriffdom, whether through inheritance or through direct appointment by the Crown. Thus, hereditary sheriff (before 1746) and sheriff-depute (after 1746) are the precursors to the modern office of sheriff principal. The precursor to the modern office of sheriff was historically referred to as sheriff substitute. History Origins David I, King of Scots from 1124 to 1153, appointed sheriffs as administrators