Partial version of MPI code (only for backup)