Use more deterministic method to figure out when batches come in.