Why create a new `maxUnits` variable here, instead of just using `maxUnitCount` with the if statement as before?