#66 #59 #5. Fixed problems with the interface caused by the terminal