Added MPI init and finalize.