Added a lot of shit to get statistics done