Added callback property to setChannel function