Added parallel processing for optimization with lcp