Moves compare_channel to its own method