Add plan handling functions.