Added RawToScaled method.