 		
 		var url = self.unanswerURLForTag(tag, from: date)
 		var task = self.generateSession().dataTaskWithURL(url, completionHandler: {(data: NSData!, response: NSURLResponse!, error: NSError!) -> Void in
+			self.lastCheckDate = NSDate()
+			NSUserDefaults.standardUserDefaults().setObject(self.lastCheckDate, forKey: self.lastCheckedDateKey)
+			NSUserDefaults.standardUserDefaults().synchronize()
+			
 			Store.DefaultStore.runClosureInContextQueue({ (moc: NSManagedObjectContext) -> () in
 				var dict: NSDictionary = NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.MutableContainers, error: nil) as NSDictionary
 				

			self.authToken = ""
		}
		
		let cal = NSCalendar.currentCalendar()
		var comp = cal.components(NSCalendarUnit.CalendarUnitYear | NSCalendarUnit.CalendarUnitMonth | NSCalendarUnit.CalendarUnitDay | NSCalendarUnit.CalendarUnitHour | NSCalendarUnit.CalendarUnitMinute | NSCalendarUnit.CalendarUnitSecond, fromDate: NSDate())
		
		comp.hour = 0
		comp.minute = 0
		comp.second = 0
		self.lastCheckDate = cal.dateFromComponents(comp)
	}
	
	let clientId = "3091"
	let authTokenKey = "auth-token"
	let validationURI = "https://stackexchange.com/oauth/login_success"
	let clientKey = "ajLLBq1xNwKq7SZY3MZ0Zw(("
	let site = "stackoverflow.com"
	let apiVersion = "2.2"
	

					var question = PostedQuestion.questionFromDictionary(item, inContext: moc)
					questions.append(question)
				}
				println("Downloaded \(questions.count) new questions (from \(date) onward)")
				if !moc.save(nil) {
					AlertManager.DefaultManager.showAlertTitled("Failed to save", message: "", buttonTitles: [ "OK "])
				}
