Update: Used $comchan instead of $chan. Thanks to FiberOptics for clarifying the difference between the 2 identifiers.