Add docs for wait