Parallelized on number of cores