Adding support to limit number of transactions return from the batch.
i.e. -- if all transactions within the batch have been retrieved, we'll
throw an exception now.