Initial network stuff.
Various changes.