Adding functionality to abandon stack.