Minor modification to Nfg script