Implemented scalefactor creation and test.