Adding the telnet support Expect function