Waiting now works, also no crashes.