Improved jitter calculation

... also extended the loop to a perpetual one.