Added support for custom iteration over a standard iteration