Add channel middleware