Changing threads over to OpenMP.