Added networking.
Added more tests.