Implement iowait