Changed threading with multiprocessing