Nested generator