Working version of planner method (no tests)