Added MPI calls to Carlo's generated code