NMF script update