Updated channel structures.
Moving debug code.