Added debug channel, fixed an issue where responses could get overwritten by new responses. (Got rid of a global variable).