Added utility methods for set_nsp and set_nsi actions.