Added line separation functionality