Added several new utility methods to PlanUtil.