Add support for toggling debug output