Integrated statistics.cpp into rf-stat.cpp