Index: trunk/ippToPsps/src/InitData.c
===================================================================
--- trunk/ippToPsps/src/InitData.c	(revision 31033)
+++ trunk/ippToPsps/src/InitData.c	(revision 31070)
@@ -66,5 +66,4 @@
 }
 
-
 /**
   Gets a value from the 'init' data 
@@ -108,36 +107,68 @@
 }
 
-/*
+/**
+   Gets model fit ID from name
+   */
+static bool getModelFitId(InitData* this, const char* name, int8_t* id) {
+
+    char buffer[10];
+    if (!getInitValue(this, "FitModel", "name", name, "fitModelID", buffer)) {
+
+        *id = -1;
+        return false;
+    }
+
+    *id = atoi(buffer);
+    return true;
+}
+
+/**
    Gets survey ID from survey name
    */
-static bool getSurveyId(InitData* this, const char* surveyType, int8_t* surveyId) {
+static bool getSurveyId(InitData* this, const char* name, int8_t* id) {
 
     char buffer[10];
-    if (!getInitValue(this, "Survey", "name", surveyType, "surveyID", buffer)) {
-
-        *surveyId = -1;
-        return false;
-    }
-
-    *surveyId = atoi(buffer);
-    return true;
-}
-
-/*
-   Gets filter ID from filter type
-   */
-static bool getFilterId(InitData* this, const char* filterType, int8_t* filterId) {
+    if (!getInitValue(this, "Survey", "name", name, "surveyID", buffer)) {
+
+        *id = -1;
+        return false;
+    }
+
+    *id = atoi(buffer);
+    return true;
+}
+
+/**
+   Gets stack type ID from stack type string
+   */
+static bool getStackTypeId(InitData* this, const char* type, int8_t* id) {
+
+    char buffer[20];
+    if (!getInitValue(this, "StackType", "stackType", type, "stackTypeID", buffer)) {
+
+        *id = -1;
+        return false;
+    }
+
+    *id = atoi(buffer);
+    return true;
+}
+
+/**
+   Gets filter ID from filter type string
+   */
+static bool getFilterId(InitData* this, const char* type, int8_t* id) {
 
     char tmp[2];
-    strncpy(tmp,filterType,1);
+    strncpy(tmp, type,1);
     tmp[1] = '\0';
     char buffer[10];
     if (!getInitValue(this, "Filter", "filterType", tmp, "filterID", buffer)) {
 
-        *filterId = -1;
-        return false;
-    }
-
-    *filterId = atoi(buffer);
+        *id = -1;
+        return false;
+    }
+
+    *id = atoi(buffer);
     return true;
 }
@@ -186,4 +217,6 @@
     this->getFilterId = getFilterId;
     this->getSurveyId = getSurveyId;
+    this->getStackTypeId = getStackTypeId;
+    this->getModelFitId = getModelFitId;
     this->destroy = destroy;
 
