Diffuse rewrite foundation