Rewrite of main launcher