Needs an else max_size = 2, or otherwise max_size = 3 will be stored in the step for all eternity until reboot. Best also put the var definition itself in this proc.