Updated regenerate nml2 script