Add improved iter() function.