Added debug option to the text UI.