Added ability to load variances from datafile.