Enabled scaling code again