How to Solve Problems While You Sleep