Remove IIFE for iterator