JC: added validate and spec for batch_num. More CN.