Assigned the channel var the channel object. Unregister was failing due to no remove method.