Closes #6.
Merge pull request #7 from Rawng/stats_fix

Closes #6.