Updated to sleep after OS signal