Avoid sleep(0.msecs) call (triggers an assertion).