Adding logic to use samples versus sum as the value of record