Making stacking work