Implemented automatic scaling based on defined width ranges.