Only print output for rank 0.