Update Headless.cpp