Index: trunk/BNC/src/PPP_free/pppClient.cpp
===================================================================
--- trunk/BNC/src/PPP_free/pppClient.cpp	(revision 6444)
+++ trunk/BNC/src/PPP_free/pppClient.cpp	(revision 6445)
@@ -166,7 +166,7 @@
       int channel = 0;
       if (satData->system() == 'R') {
-        const bncEphUser::t_ephPair* ephPair = _ephUser->ephPair(satData->prn);
-        if (ephPair) {
-          channel = ephPair->last->slotNum();
+        const t_eph* eph = _ephUser->ephLast(satData->prn);
+        if (eph) {
+          channel = eph->slotNum();
         }
         else {
@@ -221,14 +221,11 @@
   for (unsigned ii = 0; ii < corr.size(); ii++) {
     QString prn = QString(corr[ii]->_prn.toString().c_str());
-    const bncEphUser::t_ephPair* ephPair = _ephUser->ephPair(prn);
-    if (ephPair) {
-      t_eph* eLast = ephPair->last;
-      t_eph* ePrev = ephPair->prev;
-      if      (eLast && eLast->IOD() == corr[ii]->_iod) {
-        eLast->setOrbCorr(corr[ii]);
-      }
-      else if (ePrev && ePrev->IOD() == corr[ii]->_iod) {
-        ePrev->setOrbCorr(corr[ii]);
-      }
+    t_eph* eLast = _ephUser->ephLast(prn);
+    t_eph* ePrev = _ephUser->ephPrev(prn);
+    if      (eLast && eLast->IOD() == corr[ii]->_iod) {
+      eLast->setOrbCorr(corr[ii]);
+    }
+    else if (ePrev && ePrev->IOD() == corr[ii]->_iod) {
+      ePrev->setOrbCorr(corr[ii]);
     }
   }
@@ -240,14 +237,11 @@
   for (unsigned ii = 0; ii < corr.size(); ii++) {
     QString prn = QString(corr[ii]->_prn.toString().c_str());
-    const bncEphUser::t_ephPair* ephPair = _ephUser->ephPair(prn);
-    if (ephPair) {
-      t_eph* eLast = ephPair->last;
-      t_eph* ePrev = ephPair->prev;
-      if      (eLast && eLast->IOD() == corr[ii]->_iod) {
-        eLast->setClkCorr(corr[ii]);
-      }
-      else if (ePrev && ePrev->IOD() == corr[ii]->_iod) {
-        ePrev->setClkCorr(corr[ii]);
-      }
+    t_eph* eLast = _ephUser->ephLast(prn);
+    t_eph* ePrev = _ephUser->ephPrev(prn);
+    if      (eLast && eLast->IOD() == corr[ii]->_iod) {
+      eLast->setClkCorr(corr[ii]);
+    }
+    else if (ePrev && ePrev->IOD() == corr[ii]->_iod) {
+      ePrev->setClkCorr(corr[ii]);
     }
   }
@@ -266,11 +260,11 @@
   const t_ephGal* ephGal = dynamic_cast<const t_ephGal*>(eph);
   if      (ephGPS) {
-    _ephUser->putNewEph(new t_ephGPS(*ephGPS));
+    _ephUser->putNewEph(new t_ephGPS(*ephGPS), false);
   }
   else if (ephGlo) {
-    _ephUser->putNewEph(new t_ephGlo(*ephGlo));
+    _ephUser->putNewEph(new t_ephGlo(*ephGlo), false);
   }
   else if (ephGal) {
-    _ephUser->putNewEph(new t_ephGal(*ephGal));
+    _ephUser->putNewEph(new t_ephGal(*ephGal), false);
   }
 }
@@ -281,14 +275,11 @@
                               ColumnVector& xc, ColumnVector& vv) {
 
-  const bncEphUser::t_ephPair* ephPair = _ephUser->ephPair(prn);
-  if (ephPair) {
-    t_eph* eLast = ephPair->last;
-    t_eph* ePrev = ephPair->prev;
-    if      (eLast && eLast->getCrd(tt, xc, vv, _opt->useOrbClkCorr()) == success) {
-      return success;
-    }
-    else if (ePrev && ePrev->getCrd(tt, xc, vv, _opt->useOrbClkCorr()) == success) {
-      return success;
-    }
+  t_eph* eLast = _ephUser->ephLast(prn);
+  t_eph* ePrev = _ephUser->ephPrev(prn);
+  if      (eLast && eLast->getCrd(tt, xc, vv, _opt->useOrbClkCorr()) == success) {
+    return success;
+  }
+  else if (ePrev && ePrev->getCrd(tt, xc, vv, _opt->useOrbClkCorr()) == success) {
+    return success;
   }
   return failure;
Index: trunk/BNC/src/bncephuser.h
===================================================================
--- trunk/BNC/src/bncephuser.h	(revision 6444)
+++ trunk/BNC/src/bncephuser.h	(revision 6445)
@@ -49,5 +49,5 @@
   t_irc putNewEph(const t_eph* newEph, bool check);
 
-  const t_eph* ephLast(const QString& prn) {
+  t_eph* ephLast(const QString& prn) {
     if (_eph.contains(prn)) {
       return _eph[prn].back();
@@ -56,5 +56,5 @@
   }
 
-  const t_eph* ephPrev(const QString& prn) {
+  t_eph* ephPrev(const QString& prn) {
     if (_eph.contains(prn)) {
       unsigned nn = _eph[prn].size();
