Start writing the updateChannelTable function.