Add support for adjusting the number of units in a mode