Handle scaling.