Use datagen in bin, no longer assumes that datagen is available globally.