Made a new method to parallelize