Debugging improvements in telnet code.