Install and uninstall rewrite.