Handle iteration inside handler