Added parallel processing.