Adapt to new version of PosEngine