More implementation of NEW_ITERATE_FLAG