Utilities for multiprocessing