Add long line detection