Cleaned up debug message printing