Prototype implementation of a generic planner.