Final version for MPI