   
   // MARK: - Search Function
   
-  public func search(search: String, completion: (JSON?, Error?) -> Void) {
+  public func searchFor(search: String, mediaType: Media? = nil, completion: (JSON?, Error?) -> Void) {
     
     // encode search term
-    guard let encodedString = URLEscapedString(search) else {
+    guard let escapedString = URLEscapedString(search) else {
       completion(nil, .InvalidSearchTerm)
       return
     }
     
-    let term = NSURLQueryItem(name: "term", value: encodedString)
+    let term = NSURLQueryItem(name: "term", value: escapedString)
     
     // build url
     guard let url = URLWithQueryItems([term]) else {

      return
    }
    
    let task = NSURLSession.sharedSession().dataTaskWithURL(url) { data, response, error in
      
      guard let httpResponse = response as? NSHTTPURLResponse else { return }

      mainQueue { completion(json, nil) }
    }
    
    // start task
    task.resume()
  }
  
