Implemented PosType filtering in findPositions