             var masteryQueryItem = NSURLQueryItem(name: "masteryListData", value: masteryOptions)
             queryItems.append(masteryQueryItem)
         }
-        
-        addApiKeyQueryItemAndSetComponents()
-        
-        URL = components.URLString.stringByReplacingPercentEscapesUsingEncoding(NSUTF8StringEncoding)!
-        
+        createURL(hostString)
     }
     
     public func getMastery(id: Int, masteryDataOptions: [MasteryData]?) {
         var hostString = String("\(RegionBaseURL.global.rawValue)/api/lol/static-data/\(regionRawValue)/v\(LoLStaticDataVersion)/mastery/\(id)")
-        
-        setupComponents(https, hostString: hostString)
         
         if let masteryData = masteryDataOptions {
             var masteryOptions = ""

            queryItems.append(endIndexQueryItem)
        }
        
        addApiKeyQueryItemAndSetComponents()
        
        URL = components.URLString.stringByReplacingPercentEscapesUsingEncoding(NSUTF8StringEncoding)!
        
    }
    

        }
        hostString.removeAtIndex(hostString.endIndex.predecessor())
        
        createURL(hostString)
    }
    
    public func getTeamLeagueInfoEntries(teamIDs: [String]) {
