Got the parsing and telnet function working.