Added OpenMP parallel support for inner loop