Replace deprecated launchTasks() call