Move code to channelActive