Iterator to avoid ConcurrentModification exception.