The programme now stays within the same delay loop step when ending up with a full target in the middle of the loop. Still needs to be tested.