Version update, code for auto-upgrades