Add telnet function for development