Add script to generate metrics