Implemented multiprocessing for test calculations.