Added script for calculating stastics