Implement dynamic sizing.
Some adjustment for dynamic scaling.