Refactored networking to be less... odd.