Code cleanup. Add PacketSending event.