Added descheduling to prevent main loop from throttling other tasks.