Added a backup version of the old stats routine