Index: trunk/FACT++/src/smartfact.cc
===================================================================
--- trunk/FACT++/src/smartfact.cc	(revision 13848)
+++ trunk/FACT++/src/smartfact.cc	(revision 13849)
@@ -304,5 +304,5 @@
 // ========================================================================
 
-class StateMachineSmartFACT : public StateMachineDim//, public DimInfoHandler
+class StateMachineSmartFACT : public StateMachineDim
 {
 private:
@@ -407,4 +407,6 @@
         void WriteBinary(const EventImp &d, const string &fname, const T &t, double scale, double offset=0)
     {
+        const Statistics stat(t);
+
         vector<uint8_t> val(t.size(), 0);
         for (uint64_t i=0; i<t.size(); i++)
@@ -424,4 +426,8 @@
         out << offset << '\n';
         out << offset+scale << '\n';
+        out << setprecision(3);
+        out << stat.min << '\n';
+        out << stat.med << '\n';
+        out << stat.max << '\n';
         out.write(ptr, val.size()*sizeof(uint8_t));
 
@@ -1391,5 +1397,5 @@
 
         // -------------- System status --------------
-        if (fMcpConfigurationState>=5) // Idle
+        if (fDimMcp.state()>=5) // Idle
         {
             string col = kHtmlBlue;
