1) Added notify method
1) Fixed processing logic in sleep manager