Lots of work on sm_detector_gui.