Changed sleep/wait

Sleep no longer utilizes ping which seemed to be causing network interruptions.