Dreaming, after all, is a form of planning.