Updated the way debug is output