Added the scale code