Avoid hard-coding the channel count