ComplexPlanner now generates the correct reward function.