Rewrote the entire networking code