Inline the sleep function.