Make 'headless' option configurable