Reverts previous commit since we cannot return from omp loop.