Finished rewrite.