         (write-display-cell controller 2 1 "       No effects")
         (write-display-cell controller 2 2 "are active.")))))
 
+(declare enter-stop-mode)
+
 (defn- update-interface
   "Determine the desired current state of the interface, and send any
   changes needed to get it to that state."

                     ;; End stop mode
                     (with-show (:show controller)
                       (show/start!))
                     :done))
                 (handle-note-on [this controller message]
                   false)

         :next-grid-pads (int-array 64)
         :metronome-mode (atom {})
         :shift-mode (atom false)
         :stop-mode (atom false)
         :midi-handler (atom nil)
         :tap-tempo-handler (amidi/create-tempo-tap-handler (:metronome show))
         :overlays (atom (sorted-map-by >))
