Implements service for generating statistics and sending them.