Initial version of script to compute stats from miranda