Converted to generator.