Added prereqNotTaken for checking prerequisites.