Classes for multiprocessing calculations