Move config and launch code to driver script.