Need to handle count == 0 case.