Fixed stats from abusing an entire core in a never-ending loop.

Also changed tons of other things as I was looking for the issue and
couldn't find it all day, so I reverted back to when it didn't exist
and added my changes until I found the perpetrator.