MDL-22800 stats code using new enrol tables, I did not test it much because I do not have any test data :-(