First version of the generator.