Rewrite complete