Got the loops right, only need to cancel DelayRun at the right moment