Networking implementation started, lots of refactoring needed