Tidy add channel code