Prevented ConcurrentModificationExceptions.