doc: Example for batch mode