More planning code.