Automatizing stats generation