Rewrite Match.