Added conditional MPI initialization and finalization