Working multiprocessing implementation