CHANGED: Implemented SubstitutionPlan parsing