The wallhead is finished with a decorated cornice and battlement which continues around the west side of the gate tower. To the east of the chapel there is small rectangular sectioned tower which once housed a circular staircase, and beyond is the partly reconstructed gable of the East Quarter. Although some writers have attributed part of the South Quarter to the time of James IV, the form of the gunloops, the continuous parapet, and the documented payments to Peter the Flemishman for the 5 statues in 1539 adequately demonstrate that the present appearance dates from the works of James V. The entrance tower was built in 1541, and the accounts record the work of two master masons: "to John Brownhill and Henry Bawtie for complete ending of the fore entry and tower ... and raising of certain chimneys in the south quarter." Within the gate tower and south quarter, visitors can view the Keeper's Apartments in the tower, the Chapel Royal and gallery.