Improve the sleep call