Rewrite done