Rewrite some pieces.