Added the parallelized version