Added scaling code.