Start rewriting engine