added wait interval