Added max channel number.