Support swap_stack