      */
     private func runDelegateProtocolFunction(printString: String, error: String, url: String) {
         print(printString)
-        dispatch_async(dispatch_get_main_queue(), {
-            self.delegate.didNotReceiveAPIResults(error, url: url)
-        })
+        DispatchQueue.main.async{ self.delegate.didNotReceiveAPIResults(error: error, url: url) }
     }
     
     /**

     */
    private func runDelegateProtocolFunction(printString: String, results: [String: AnyObject]!, url: String) {
        print(printString)
        dispatch_async(dispatch_get_main_queue(), {
            self.delegate.didReceiveAPIResults(results, url: url)
        })
    }
}



                    }
                }
                //Must encode the request to HTTPRequest
                request.httpBody = postValues.data(using: String.Encoding.utf8, allowLossyConversion: true)
                //Needed to let the Server know what kind of data that is being sent
                request.addValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
            case .multipartForm:
