Store fields as an object, not an array. collectFields becomes collectValues.