Another attempted fix at sleep timing.