Multiprocessing fixes