Added overlong line detection. highlights in red.