Add support for multiple iterations