Mostly rewrite.