Expanding stat code
Almost working
I'm an idiot