Starting rewrite process