Maybe you know this already, but for the record: move_detection_threshold isn't actually used in the code.