Fixed a few bugs with the stats portion and a few other places.