Breaking out parsing from parseFile