Implemented openmp support