 Following a dynastic dispute in the 19th century, John Lord Erskine was acknowledged, retrospectively, as the 17th Earl.On 3 August 1522, Erskine was appointed keeper of the ten-year-old King James V of Scotland and Stirling Castle.He had strict instructions from Margaret Tudor to hold the castle keys and set a password every night for the King's guards.