This is bad, don't use it for now.
Reimplemented packet sending, but a lot cleaner.