                :finished false
                :acq-thread acq-thread
                :summary-metadata (make-summary-metadata settings)})
-      (def outq out-queue)
+      (def outq out-queue) ; for debugging
       (when-not (:stop @(.state this))
         (.start acq-thread)
         out-queue)))

      (prepare-state state (when (:use-position-list settings) position-list) autofocus-device)
      (def last-state state) ; for debugging
      (let [acq-seq (generate-acq-sequence settings @attached-runnables)]
        (def acq-sequence acq-seq)
        (execute (mapcat #(make-event-fns % out-queue) acq-seq)))
      (catch Throwable t
             (def acq-error t)


(defn run-acquisition [settings out-queue cleanup? position-list autofocus-device]
    (try
      (def acq-settings settings) ; for debugging
      (log "Starting MD Acquisition: " settings)
      (when gui
        (doto gui
