Changes to sleep time management; needs rework