Rewrite some code.