Removed the unnecessary updateChannel() function