Added a loop and all stats now work