The office of Justiciar and Judex were just two ways that Scottish society was governed. In the earlier period, the king "delegated" power to hereditary native "officers" such as the Mormaers/Earls and Toísechs/Thanes. It was a government of gift-giving and bardic lawmen. There were also popular courts, the "comhdhail", testament to which are dozens of placenames throughout eastern Scotland. In the Norman period, sheriffdoms and sheriffs and, to a lesser extent, bishops (see below) became increasingly important. The former enabled the King to effectively administer royal demesne land. During David I's reign, royal sheriffs had been established in the king's core personal territories; namely, in rough chronological order, at Roxburgh, Scone, Berwick-upon-Tweed, Stirling and Perth. By the reign of William I, there may have been about 30 royal sheriffdoms, including ones at Ayr and Dumfries, key locations on the borders of Galloway-Carrick. As the distribution and number of sheriffdoms expanded, so did royal control. By the end of the thirteenth century, sheriffdoms had been established in westerly locations as far-flung as Wigtown, Kintyre, Skye and Lorne. Through these, the thirteenth-century Scottish king exercised more control over Scotland than any of his later medieval successors. The king himself was itinerant and had no "capital" as such although Scone performed a key function. By ritual tradition, all Scottish kings in this period had to be crowned there by the Mormaers of Strathearn and Fife. Although King David I tried to build up Roxburgh as a capital, in the twelfth and thirteenth centuries, more charters were issued at Scone than any other location. Other popular locations were nearby Perth, Stirling, Dunfermline and Edinburgh. In the earliest part of this era, Forres and Dunkeld seem to have been the chief royal residences.