Implemented condition batches in AI generation.