Trying to make the scaling happen, copied code from Crewson site.