Compiling stats with complete set in fields
Merge remote-tracking branch 'chiel/stats' into thijs
Stat with attributes on output. Crashes on write though