Added headless option.