Use waitFor