Fixed Logic

One too many while loops. Upped check time from 5 sec intervals to 30
second intervals.