Added checks for MPI runs.