Refactor DEBUG logs and channel creation