James IV (reigned 1488–1513) kept a full Renaissance court, including alchemists, and sought to establish a palace of European standing at Stirling. He undertook building works at the royal residences of Edinburgh, Falkland and Linlithgow, but the grandest works were at Stirling, and include the King's Old Building, the Great Hall, and the Forework. He also renovated the chapel royal, one of two churches within the castle at this time, and in 1501 received approval from Pope Alexander VI for the establishment of a college of priests. The Forework, of which little now remains, was derived from French military architecture, although military details were added more for style than for defence. A new portcullis was painted with red lead and linseed oil. The gardener, George Campbell, built archery butts next to the stables in 1504. James IV played tennis at Stirling with the Spanish ambassador, Pedro de Ayala.