Rewrite entire structure.