DataGen in lib.