Moving sleep threshold to Settings. Introduce Settings.DETECT_SLEEP to disable if choppy [shared] systems create false sleep/resume events.