Added a function to fetch channel data