Added better print debug message option