Adding some material to help automate multidimensional scaling.