         //route.getVehicleLocations({(success:Bool, vehicles:[TransitVehicle]) -> Void in
         SwiftBus.sharedController.vehicleLocationsForRoute("N", forAgency: "sf-muni", closure:{(route:TransitRoute?) -> Void in
             if let transitRoute = route as TransitRoute! {
+                let vehicleTitleMessage = "\(transitRoute.vehiclesOnRoute.count) vehicles on route N Judah"
+                let messageString = "Example vehicle:Vehcle ID: \(transitRoute.vehiclesOnRoute[0].vehicleId), \(transitRoute.vehiclesOnRoute[0].speedKmH) Km/h, \(transitRoute.vehiclesOnRoute[0].lat), \(transitRoute.vehiclesOnRoute[0].lon), seconds since report: \(transitRoute.vehiclesOnRoute[0].secondsSinceReport)"
+                
                 print("\n-----")
-                print("\(transitRoute.vehiclesOnRoute.count) vehicles on route N Judah")
-                print("Example vehicle:Vehcle ID: \(transitRoute.vehiclesOnRoute[0].vehicleId), \(transitRoute.vehiclesOnRoute[0].speedKmH) Km/h, \(transitRoute.vehiclesOnRoute[0].lat), \(transitRoute.vehiclesOnRoute[0].lon), seconds since report: \(transitRoute.vehiclesOnRoute[0].secondsSinceReport)")
+                print(vehicleTitleMessage)
+                print(messageString)
+                
+                self.showAlertControllerWithTitle(vehicleTitleMessage, message: messageString)
             }
         })
         

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

    
    @IBAction func agencyListTouched(sender: AnyObject) {
        SwiftBus.sharedController.transitAgencies({(agencies:[String : TransitAgency]) -> Void in
            let agenciesString = "Number of agencies loaded: \(agencies.count)"
            let agencyNamesString = agencies.map({_, agency in "\(agency.agencyTitle)"})
            
            print("\n-----")
            print(agenciesString)
            print(agencyNamesString)
            
            self.showAlertControllerWithTitle(agenciesString, message: "\(agencyNamesString)")
        })
    }

