Changed threading to multiprocessing due to possible non-thread-safe workers.