Generators must be on top-level