Add support for scaling.