Added beginnings of statistics.
Finished basic statistics collection module.