Refactor channels to doubly linked list