Changed the parser to accomidate strings for task_type