Improving select_channel pipeline function.