Adding start of rewrite