Added line break detection.