Changed the parallelization again to generate at most 16 tasks