Refactored parser, now parses prerequisites