Added multiprocessing and performance timing