Before rewrite