Added support for iterating through collections