Simplify sleep-code