Use the latest API for launchmode.