Changed mc_ch_num check at beginning of loop, should be faster