Added and integrated the PacketSender class.