Implements statistics module.