Changed debug print to log (TUI-1)