Input (grade 13): Curnow convinced Ned to let him go and then as soon as he was released he alerted the authorities by standing on the railway line near sunrise and waving a lantern wrapped in his red scarf.
Output (grade 6): As soon as he was free he stood on the railway line waving a lantern (light) wrapped in his red scarf.