Change mechanism of detecting batch. It make possible to detect batch with one request.