Pass headless in from opts.