Partial implementation of Wait