Scale functions written but they probably don't work.