createFun uses NPV from GlobalEnv
Handle error in sliders
getRanges and checkModeledValues