Updated scripts and Statistics code