streamline code setting SERVICE_OFF_INTERVAL