[UPDATE] made metric and stats calculation an executable script.