Removed hard-coded values for graphName and graphObjName, to allow them to be passed in settings.