Add batch mode to perform WSD on file