Simplify  wait function