     (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)))))))


(defn start-slice-sequence []
  (core startStageSequence (core getFocusDevice)))

(defn init-burst [length trigger-sequence relative-z]
  (core setAutoShutter (@state :init-auto-shutter))
  (println "autoshutter:" (core getAutoShutter))
  (load-property-sequences (:properties trigger-sequence))
  (let [absolute-slices (load-slice-sequence (:slices trigger-sequence) relative-z)]
    (start-property-sequences (:properties trigger-sequence))
    (start-slice-sequence)
    (swap! state assoc :burst-init-time (elapsed-time @state))
