Implemented statistics tracking
Reporting stats in JSON;