Adding a generator approach to p10