Removed auto type from iterators to stop C++11 complaints