 But at a later date the king purchased back the castle of St. Andrews as a residence for the archbishops of St. Andrews, and Gladstanes dwelt in it for a time.Gladstanes had a great aversion to Andrew Melville.Martine states that the king brought Gladstanes to St. Andrews, where Melville was principal of the university, for the very purpose of balancing and putting a check on Melville, and of preventing the students from imbibing Melville's principles.