Added code for empirical estimation for NIVS