First draft of a stats module.