             switch result {
             case let .success(innerAgencies) where innerAgencies[agencyTag] != nil:
                 
-                let currentAgency = innerAgencies[agencyTag]!
                 
                 //The agency exists & we need to load the transit agency data
                 let connectionHandler = SwiftBusConnectionHandler()

                            route.agencyTag = agencyTag
                        }
                        
                        //Saving the routes for the agency
                        currentAgency.agencyRoutes = agencyRoutes
                        

                completion?(.error(error))
            }
        }
        
    }
    
    /**
