Rewrite done so far.