Adding duplicate check for repeated name/value pairs.