Refactored multiprocessing support