Complete functional XPlan