Added better random sleeping.