Simplify size updating algorithm