Add check for duplicate headers.