Waiting until the operation is done.