Add random ID generation and batch tag generation.