Changed doc_generator to profile_generator, more in line with future changes.