Changes iterator to use longs for the indices.