Use iterator to decrease memory usage.