removed allPlans lookup since it makes no sense.