Rewrite some stuff.