Found out how to make programs run headlessly. Will make a UI option to select whether or not the window should show. Making the window hidden significantly reduced the running time. There used to be a 200ms time bump for the first time you have to open a window.