Added lib-agnostic <functional> features. Added a stopping feature to the planners.