Adding scoring functionality