Handle stacks and remove link chunks.