Needed to call get_all_dummy_indices_safely more often.