Implemented parallel processing.