Attempt to speed up loop by changing compare condition for the end of the cycle to length of cycle  - 1/2 the loop interval.