Shouldn't this go inside the onLaunched listener?