Implementing the logic to executing a plan in the new OCPlanning agent