Improved stats cron job