Support headless mode