Fixed the parser to read line by line.