I think we can actually just do .iterator here and return the iterator directly.