Rewrote how packet sending is done.