Refactoring; Cope with multiple <Iteration> blocks per query.