Implemented sleep, which resolves #38