Added sending packets

Doesn't work, and I have no idea why. I don't see a mistake anywhere.
Oh well, perhaps just more testing will have to do. :(