Done rewriting functions to use http instead of telnet