Adding the generator