Changed for one thread per generator