NMGS.h added