Added some (questionable) simple scaling code.