Added distributed stacking.