Changed API to publish updated data to a channel instead of altering it in place