TUI now better responding to user input. Removed a useless Thread.