 	simCity.events.list.removeFirst()
 
 } while simCity.events.now < simCity.events.stopTime
-print(" okay")
+print("okay")
 
 
 // Cleanup stage events
-print("Running cleanup events...", terminator: "")
+print("Running cleanup events... ", terminator: ""); fflush(stdout)
 for event in simCity.events.cleanup {
 	event.action()
 	if debug.contains("main().events"){
 		print("[cleanup] main():\t".cyan(), "Executing", event.type, "event\t", event.description.darkGray())
 	}
 }
-print(" okay")
+print("okay")
 
 
 // Successful exit

	let buildMask = toolsConfig["buildObstructionMask"] as? Bool
	where buildMask == true
{
	print("Building obstruction mask...", terminator: "")
	do {
		try buildObstructionMask(fromTrips: fcdTrips)
	} catch {
		print(" failed", "\nError:", error)
		exit(EXIT_FAILURE)
	}
	print(" okay")
	print("\tBuilt a map of obstructions from \(fcdTrips.count) steps.")
	exit(EXIT_SUCCESS)
}

/* Initialize PostgreSQL connection
 */
print("Initializing GIS connection...", terminator: "")

guard	let gisConfig = config["gis"],
		let gisHost = gisConfig["host"] as? String,

simCity.innerBounds = cityInnerBounds

// Clear all points from the database
print("Clearing old features from GIS... ", terminator: ""); fflush(stdout)
simCity.gis.clearFeatures(withType: .Vehicle)
simCity.gis.clearFeatures(withType: .RoadsideUnit)
simCity.gis.clearFeatures(withType: .ParkedCar)
print("okay")

// Add statistics collection events to the eventlist
print("Scheduling collection events... ", terminator: ""); fflush(stdout)
simCity.stats.scheduleCollectionEvents(onCity: simCity)
print("okay")

// Add mobility timestep events to the eventlist
print("Scheduling mobility events... ", terminator: ""); fflush(stdout)
simCity.events.scheduleMobilityEvents(fromFCD: &fcdTrips, city: simCity)
print("okay")


/*** EVENT LOOP ***/

// Initial stage events
print("Running initial events... ", terminator: ""); fflush(stdout)
for event in simCity.events.initial {
	event.action()
	if debug.contains("main().events"){
		print("[initial] main():\t".cyan(), "Executing", event.type, "event\t", event.description.darkGray())
	}
}
print("okay")

// Main simulation events
print("Running simulation events... ", terminator: ""); fflush(stdout)
repeat {
	guard let nextEvent = simCity.events.list.first else {
		print("Exhausted event list at time", simCity.events.now.milli)
