Refactored pile interaction to universal storage