Changed the way sendPacket gets called