var trueTotal Adjusted.

var trueTotal adjusted to properly reflect correct values in the
function.