Clean and delete unnecessary lines.