Implemented lazy loading of parameters in scripts

Also uniform NULL capitalization throughout