Adding possibility to set an iterator to a collection