Added support for running generators in parallel.