Adding basic handler for channels. To refactor