Return result from wait