Remove excess lines.