added fuctionality for computing key statistics