Modify parse-line function