Used range for channel loop.
Refactored.