Add Generate Channel function