Debug script and review of stacking