Fixed time.sleep reference