Added networking support (I should commit more)