Changed not to use ncurses.