Revert "Removed `sleep` from thread"

This reverts commit bb96ecc5c6fe4a46806eaadfea3d8614f806b08a.