Changed sleep interrupt handling