Changed to using the batch method.