The sleep code was wrong