Handle stacks with maximum height.