Enabling toggling of MPI on and off