Expose the hook to change the stack mode