Original sentence: It was following the birth of Agnes's child when she was recovering from her confinement, thus providing Queen Mary with greater liberty, that Mary chose to escape from Lochleven wih the aid of Sir William's brother George and an orphaned cousin Willy Douglas who also lived at the castle
Edited sentence: It was following the birth of Agnes's child when she was recovering from her confinement, thus providing Queen Mary with greater liberty, that Mary chose to escape from Lochleven with the aid of Sir William's brother George and an orphaned cousin Willy Douglas who also lived at the castle