Added omp parallelization