Code cleanup.
Simplify resize code.