Optimized wait times in PacketHandler