Add init function
Add channels related functions