         //var agency = TransitAgency(agencyTag: "sf-muni")
         //agency.getAgencyData({(success:Bool, agency:TransitAgency) -> Void in
         SwiftBus.sharedController.routesForAgency("sf-muni", closure: {(agencyRoutes:[String : TransitRoute]) -> Void in
+            let agencyString = "Number of routes loaded for SF MUNI: \(agencyRoutes.count)"
+            let routeNamesString = agencyRoutes.map({_, route in "\(route.routeTitle)"})
+            
             print("\n-----")
-            print("Number of routes loaded for SF MUNI: \(agencyRoutes.count)")
-            for route in agencyRoutes.values {
-                print("Route title: " + route.routeTitle)
-            }
+            print(agencyString)
+            print(routeNamesString)
+            
+            self.showAlertControllerWithTitle(agencyString, message: "\(routeNamesString)")
         })
         
     }

    
    @IBAction func agencyListTouched(sender: AnyObject) {
        SwiftBus.sharedController.transitAgencies({(agencies:[String : TransitAgency]) -> Void in
            print("\n-----")
            print("Number of agencies loaded: \(agencies.count)")
            for agency in agencies.values {
                print("Name: " + agency.agencyTitle)
            }
        })
    }


        SwiftBus.sharedController.routeConfiguration("5R", forAgency: "sf-muni", closure: {(route:TransitRoute?) -> Void in
            //If the route exists
            if let transitRoute = route as TransitRoute! {
                let routeCongigMessage = "Route config for route \(transitRoute.routeTitle)"
                let numberOfStopsMessage = "Number of stops on route in one direction: \(Array(transitRoute.stopsOnRoute.values)[0].count)"
                
                print("\n-----")
                print(routeCongigMessage)
                print(numberOfStopsMessage)
                
                self.showAlertControllerWithTitle(routeCongigMessage, message: numberOfStopsMessage)
            }
            
        })
