Preparing for headless (server) execution.