Replaced long iterator types with auto.