Dynamic sleeping added