GP: Rewrite criteria.