Add the script to generate stats