Convert to generators.