Refactored the scheduled task so that it can catch up with itself if
there's a break in transmission.