Add getChannel function.