was able to access values in pGenerator. By first setting the next generator to a non-const pointer, and then setting pGenerator to that pointer.