Still optimize generator.