Patched up the stats recording, now including leading zeros
Included a time-based stats filter to reduce the output size