code: function (percentListener, stepListener) {
  		this.previousPercent = 0;
  		// Function gets updated and has a percentage value.
  		this.updatePercentage = function (value, callback) {
  			var newVal = Math.floor(parseFloat(value.toFixed(1)));
  			if(newVal !== upgradeProgressListener.previousPercent) {
  				if (callback !== undefined) {
  					percentListener(newVal)
  					.then(callback);
  				}
  				upgradeProgressListener.previousPercent = newVal;
  			}
  		};
  
  		// Function gets updated during various steps of the update procedure.
  		// Text: 1. "", "", ""
  		this.updateStepName = function (value, callback) {
  			if (callback !== undefined) {
  				stepListener(value)
  				.then(callback);
  			}
  		};
  		var upgradeProgressListener = this;
  	}
docs: Begin T7 specific functions: