Revert "Trying to sleep instead of using a callback,"

This reverts commit 4d305b38631726037d0c07dc8af4b97217c8b3f0.