push() is cheaper than unshift(). Refactor to separate the stacked case from