Add wait to sendfile