         
         operation.completionBlock = { [weak self] () -> Void in
             
-            dispatch_async(dispatch_get_main_queue(), { [weak self] () -> Void in
+            DispatchQueue.main.async(execute: { [weak self] () -> Void in
                 
                 guard let strongSelf = self else
                 {
                     return
                 }
                 
-                if operation.cancelled == true
+                if operation.isCancelled == true
                 {
                     return
                 }

     
        let operation = self.operation as! ExportQuotaCreateOperation
        
        if operation.state == .Executing
        {
            operation.videoSettings = self.videoSettings


        
        assert(self.input != nil, "self.input cannot be nil")
        
        self.edgesForExtendedLayout = UIRectEdge()
        
        self.setupNavigationBar()
        self.setupAndStartOperation()
