Updated lsleep solution.