Able to record one generation of stats

But still rather buggy, recordings of multiple generations do not work
at the moment.