fs_ld_lines function finished, tested roughly.