Updated get_lines