Adjust stats to work with cronjob