Added optimization for parallel OpenMP