Added network send/receive code, untested