Worked on statistics module. Needs testing