Added check so that upgrade cannot be used with other options.