Implement box scaling.