     private var yearToday: Int = DayDate.today.year
     // Current period
     private var currentPeriod: Period = Period(ofDate: DayDate.today)
-    // Bool stores if event thread is running
+    // Bool stores if the Event Processing Thread (ept) is running
     private var eptRunning: Bool = false
-    // Bool stores if event thread should stop
-    private var eptSafeContinue: Bool = false
+    // Stores temp data that was attempted to be set while Event Processing Thread was running
+    private var eptTempData: [EventData]?
     // Bool stores is view is scrolling to a specific day
     private var scrollingToDay: Bool = false
-    // Stores most recently assigned event data
-    private var eptTempData: [EventData]?
     // Previous zoom scale of content
     private var previousZoomTouch: CGPoint?
     // Current zoom scale of content


    // MARK: - HELPER/PRIVATE FUNCTIONS -

    private func safeCallbackOverwriteAllEvents() {
        DispatchQueue.main.sync {
            eptRunning = false
            overwriteAllEvents(withData: eptTempData)
        }
    }


                }
            }

            // This check will halt the loop in case an attempt was made to overwrite events while this
            // thread was running. This prevents the relatively expensive sort from being executed.
            if let overwriteTempData = self.eptTempData {
                self.forceSyncOverwriteAllEvents(overwriteData: overwriteTempData)
                return
            }

