Scaling

Added support for scaling.