Adapted to PReFr v0.3.