Add iteration functionality