Moved method from service to statistics class