`vardata` needs to be used around line 334 when we built the API options in $opts.