Slightly more optimized getChannels