Rewrite intenals.