Made a tiny modification on how it checks for a good line when parsing.