Overhaul parser, fixes huge pipelines, needs optimization and cleanup