Added batching to sqs output