Added threading to the telnet server.