             
         }
         
-        if let closure = routeConfigClosure as (TransitRoute? -> Void)! {
-            closure(currentRoute)
-        }
-        
+        routeConfigClosure(currentRoute)
     }
     
     //Parsing vehicle locations for a route

        startConnection(allRoutesURL + agencyTag)
    }
    
    func requestRouteConfiguration(routeTag:String, fromAgency agencyTag:String, closure:((route: TransitRoute?) -> Void)?) {
        currentRequestType = .RouteConfiguration
        
        routeConfigClosure = closure

    }
    
    //Request data for all lines
    func requestAllRouteData(agencyTag: String, closure: (agencyRoutes:[String : TransitRoute]) -> Void) {
        currentRequestType = .AllRoutes
        
        allRoutesForAgencyClosure = closure
