Added debug channel, bugfixes