Finished rewriting scripts.