Implemented decent --reinstall option.