Writing channel API