Can you switch to comm.size and comm.rank here? Just to be consistent with the other examples.