Added new auto-launch routine. Still to be tested though.