 			
 			UIApplication.shared.endBackgroundTask(self.backgroundUpdateTask)
 			self.backgroundUpdateTask = UIBackgroundTaskIdentifier.invalid
-			completionHandler(.newData)
-
-		}
-		
-		completionHandler(.newData)
+			updateCompletionHandler()
+			
+		}
 		
 	}
 	

			self.backgroundUpdateTask = UIApplication.shared.beginBackgroundTask {
				UIApplication.shared.endBackgroundTask(self.backgroundUpdateTask)
				self.backgroundUpdateTask = UIBackgroundTaskIdentifier.invalid
				completionHandler(.newData)
			}
			
			sleep(1)

		
		os_log("Woken to perform account refresh.", log: log, type: .info)
		
		let startingUnreadCount = unreadCount
		let updateCompletionHandler = { [unowned self] in
			if startingUnreadCount != self.unreadCount {
				completionHandler(.newData)
			} else {
				completionHandler(.noData)
			}
		}
		
		AccountManager.shared.refreshAll()
		
		os_log("Accounts requested to begin refresh.", log: self.log, type: .debug)
