Sleep to avoid 100% CPU usage