Moved parseline to helpers