added sleep to status_wait