Changed join to wait.