First version of stats callback.