Added openmp support