Base rewrite