Added OpenMP parallelization.