JRH: Adding average and score calculation