This method is effective for flows without a UI component.