Improve batch operation.
Add some comments.