Cleaned up debug messaging system