Removed if(rank == 0) that was added for negative testing