Added multiprocessing in all()