         cpmIndexPrev = totalSec;
         cpmIndex++;
         
-        if(cpmIndex >= 200)
+        if(cpmIndex >= RadiationWatch::kHistoryCount)
         {
           cpmIndex = 0;
         }
         
-        if(cpmHistory[cpmIndex] > 0)
-        {
-          cpm -= cpmHistory[cpmIndex];
-        }
-        cpmHistory[cpmIndex]=0;
+        if(radiationWatch._cpmHistory[cpmIndex] > 0)
+        {
+          cpm -= radiationWatch._cpmHistory[cpmIndex];
+        }
+        radiationWatch._cpmHistory[cpmIndex]=0;
       }
       
       //Store count log
-      cpmHistory[cpmIndex] += signCount;
+      radiationWatch._cpmHistory[cpmIndex] += signCount;
       //Add number of counts
       cpm += signCount;
       

int nON=0;//Lock flag for Noise Puls

double cpm = 0; //Count rate [cpm] of current
double cpmHistory[200]; //History of count rates
int cpmIndex=0;//Position of current count rate on cpmHistory[]
int cpmIndexPrev=0;//Flag to prevent duplicative counting

//Timing Settings for Loop Interval
int prevTime=0;
int currTime=0; 

int totalSec=0; //Elapsed time of measurement [sec]

// URL http://www.radiation-watch.org/
//////////////////////////////////////////////////

const double alpha=53.032; // cpm = uSv x alpha

int index=0; //Number of loops
