Minor improvements to multiprocessing