I originally did use the generator, and I ran into a problem with that approach. It's a little shaky in my memory, but I believe that the problem may have been that I ended up iterating the profiles two times (when collating two different kinds of data), and I think that led to problems.

I can revisit to determine exactly what the problem was.