This correctly sets the sleep time between host checks.  Previously this was setting the sleep time in between each check to the total time we wanted to sleep for the loop.