Trying to add callbacks for turning between user-defined packets and back