Input (grade 4): It moved north until a trough of low pressure turned it to the northeast.
Output (grade 4): It moved north before a trough of low pressure turned it to the northeast.