Better way to generate.