Adding a batch method