Rewrite Stage 1