Moving channel assignment outside of error check