Use NGenerator in main