     (condp = (:task event)
       :snap (apply snap-image shutter-states)
       :burst (init-burst (count (:burst-data event))
-                         (:trigger-sequence event))
+                         (:trigger-sequence event)
+                         (:relative-z event))
       nil)))
 
 (defn collect [event out-queue]

          wake-time (if (> now (+ target-time 10)) now target-time)]
      (state-assoc! :last-wake-time wake-time)
      (when-not (core isContinuousFocusEnabled)
        (state-assoc! :reference-z-position 
                      (get-z-stage-position (core getFocusDevice)))))))


        (core loadPropertySequence d p (str-vector s))))
    (reset! active-property-sequences property-sequences)))
  
(defn load-slice-sequence [slice-sequence relative-z]
  (when slice-sequence
    (println slice-sequence relative-z)
    (let [z (core getFocusDevice)
          ref (@state :reference-z-position)
          adjusted-slices (if relative-z
                            (map #(+ ref %) slice-sequence)
                            slice-sequence)
          new-seq (not= [z adjusted-slices] @active-slice-sequence)]
      (println "adjusted-slices: " adjusted-slices ";" "reference-z-position" (@state :reference-z-position))
      (when new-seq
        (core loadStageSequence z (double-vector adjusted-slices)))
      (reset! active-slice-sequence [z adjusted-slices])
