Using MPI_Datatype instead of int. Thanks to Jed Brown for noticing this.