MPI added to the fortran implementation