 Its sale in the late 17th century to the Earls of Hopetoun, was to see much structural alteration to the building.The Hopes were originally an Edinburgh family with strong links to the law.During the Williamite Revolution the Keiths were attainted as Jacobites.