Optimised GeneratorThread