Added openMP threading