Changed iterator to not store snapshot but reset if container is changed.