Refactored networking code stuff to find these damn client crashes!