Continued network stuff yet again. Still very much WIP