Added code to create the channel element