Added distinct action.

Fixed cases where field names containing hyphens were not getting parsed correctly.