Updated for compatibility with channel API ver. 0.7