I added a wait to check the call ended