Adjusted headlessScripts.