Modified form_lines method