Made sleep intervals configurable