Added checks for garbage lines in parser.