Upgrade and update mode in driver script