Changed a pump-sleep loop to the new blockingPump