helped Francis Stewart, 5th Earl of Bothwell who was a rebel against the king. Colonel William Stewart gave information to Sir James Sandilands that led to his arrest. A "Lady Patfaran" also revealed information. She was Isobel Hepburn, Lady Pitfarran, William Stewart's wife. On 8 August 1592 the Duke of Lennox arrested Logie with Michael Balfour of Burleigh. Logie confessed to planning four different attempts to capture the king. One involved Margaret Vinstarr, Danish maid of honour to the queen, and Logie's mistress and fiancé. She would steal the keys to the back gate of Dalkeith Palace and let in Bothwell's men. When James interrogated him, Logie was immediately cooperative and withheld nothing, saying that many other servants were allies of Bothwell, in part because they had not been paid. Logie said that Bothwell had received money from Spain, but the Laird of Burleigh said this was only a rumour intended to show that Bothwell had Spanish backing and so encourage his faction. Bowes thought that James would want to have Logie executed, but the queen and Margaret Winstar, who was from a well-connected family and thought to be related to the queen, would work to save his life. Logie was imprisoned in Dalkeith Palace. He escaped with the help of Margaret Winster who slept in the queen's bedchamber. Vinstarr asked the guards to bring the prisoner to the queen, and then led him through the queen's bedchamber to a window where she had left a rope (or a pair sheets). An accomplice was waiting below with a horse. The story of the escape is the basis of the ballad, "The Laird of Logie". The queen was asked to send Vinstarr back to Denmark but she refused, instead she stayed at Wemyss Castle for a while. On 9 November 1592 Anne of Denmark wrote to the Laird of Wemyss to thank him for looking after her. David Moysie wrote an account of the escape in Scots, here given with a modernised version;the same nycht that he was examinat, he escapit out by the meanis of a gentlewoman quhom he loved, a Dence, quho convoyed him out of his keiperis handis throw the Queinis chalmer, quhaire his Majestie and the Queine wer lyand in thair beddis, till a wyndow in the backsyde of the plaice, quhair he gead doun upone a tow, and schot thrie pistoletis in takin of his onlouping,