Moved some launch tasks out of the Swing event loop.