Added auto-upgrade.
Added auto-upgrade.