Moved Networking code into server