Moving parser to a file