Stacking algorithm fixes. Release 0.3.6.
Stacking algorithm fixes. Release 0.3.6.