Implements statistics