Channels working thanks to tutorial by @mmukhin