Use multiprocessing instead of threads