Broken gen

Commiting for history, will move to a new gen method