Modified NPEffective and NPEffective2 classes.