Some minor chages to the variance function.