Note that batch mode is currently experimental.