In 1562 and 1563, the western three bays of the church were partitioned off by a wall to serve as an extension to the Tolbooth: it was used, in this capacity, as a meeting place for the burgh's criminal courts, the Court of Session, and the Parliament of Scotland.