Sleep is implemented. The deadlock issue might be perhaps that it was going too fast and sleep slows it down now.