Added some more braces to ensure proper channel setting.