Added multiprocessing support.