Do you really mean to create a client every time waitForTrigger is called?