Index: /trunk/BNC/src/PPP/filter.cpp
===================================================================
--- /trunk/BNC/src/PPP/filter.cpp	(revision 5747)
+++ /trunk/BNC/src/PPP/filter.cpp	(revision 5748)
@@ -4,4 +4,5 @@
 #include <newmat.h>
 #include <newmatio.h>
+#include <newmatap.h>
 
 #include "filter.h"
@@ -10,4 +11,5 @@
 #include "station.h"
 #include "pppClient.h"
+#include "bncmodel.h"
 
 using namespace BNC;
@@ -194,5 +196,5 @@
     // Check number of observations, truncate matrices
     // -----------------------------------------------
-    if (iObs+1 < OPT->minobs()) {
+    if (iObs+1 < OPT->_minObs) {
       return failure;
     }
@@ -203,5 +205,5 @@
     // Kalman update step
     // ------------------
-    kalman(_QFlt, _xFlt, AA, ll, Sl);
+    bncModel::kalman(AA, ll, Sl, _QFlt, _xFlt);
 
     // Check Residuals
@@ -214,6 +216,5 @@
       const t_lc::type tLC = usedTypes[ii];
       double res = fabs(vv[ii]);
-      if (res > 
-          (t_lc::includesCode(tLC) ? OPT->maxResCode() : OPT->maxResPhase())) {
+      if (res > OPT->maxRes(tLC)) {
         if (res > fabs(maxOutlier)) {
           maxOutlier      = vv[ii];
@@ -262,10 +263,8 @@
           if (tLC == LCs[jj]) {
             obs->setRes(tLC, vv[ii]);
-            if (OPT->logLevel() > 1) {
-              LOG << epoTimeStr << " RES " 
-                  << left << setw(3) << t_lc::toString(tLC) << right << ' ' 
-                  << obs->prn().toString() << ' ' 
-                  << setw(8) << setprecision(4) << vv[ii] << endl;
-            }
+            LOG << epoTimeStr << " RES " 
+                << left << setw(3) << t_lc::toString(tLC) << right << ' ' 
+                << obs->prn().toString() << ' ' 
+                << setw(8) << setprecision(4) << vv[ii] << endl;
           }
         }
Index: /trunk/BNC/src/PPP/options.h
===================================================================
--- /trunk/BNC/src/PPP/options.h	(revision 5747)
+++ /trunk/BNC/src/PPP/options.h	(revision 5748)
@@ -16,4 +16,6 @@
   bool useGlonass();
   bool xyzAprRoverSet();
+  std::vector<t_lc::type> LCs();
+  double maxRes(t_lc::type tLC);
 
   bool         _realTime;
