Add ES6 generators support