             
             //If the stop and route exists
             if let transitStop = route as TransitStop! {
+                let predictionStrings:[Int] = transitStop.combinedPredictions().map({$0.predictionInMinutes})
+                
                 print("\n-----")
                 print("Stop: \(transitStop.stopTitle)")
-                let predictionStrings:[Int] = transitStop.combinedPredictions().map({$0.predictionInMinutes})
                 print("Predictions at stop \(predictionStrings) mins")
+                
+                self.showAlertControllerWithTitle("Stop Predictions for stop \(transitStop.stopTitle)", message: "\(predictionStrings)")
             }
             
         })
         
+    }
+    
+    func showAlertControllerWithTitle(title: String, message: String) {
+        let alert = UIAlertController(title: title, message: message, preferredStyle: .Alert)
+        alert.addAction(UIAlertAction(title: "Dismiss", style: .Cancel, handler: nil))
+        
+        self.presentViewController(alert, animated: true, completion: nil)
     }
 
     override func didReceiveMemoryWarning() {

        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 stationPredictionsTouched(sender: AnyObject) {
        SwiftBus.sharedController.stationPredictions("5726", forRoutes: ["KT", "L", "M"], withAgency: "sf-muni", closure: {(station: TransitStation?) -> Void in
            if let transitStation = station as TransitStation! {
                let lineTitles = "Prediction for lines: \(transitStation.routesAtStation.map({"\($0.routeTitle)"}))"
                let predictionStrings = "Predictions at stop \(transitStation.combinedPredictions().map({$0.predictionInMinutes}))"
                
                print("\n-----")
                print("Station: \(transitStation.stopTitle)")
                print(lineTitles)
                print(predictionStrings)
                
                self.showAlertControllerWithTitle(lineTitles, message: "\(predictionStrings)")
            }
        })
    }
