Wrote part of the multi-processing code.