Correctly compiling generators.