Replace this with a proper wait for the app to have loaded.