Added debugging text to viewer.