Modify the function of statistics