Starting code rewriting