Added some basic net functionality, still under construction.