Ashkan: bugs in setDataLimit and setBatteryThresh is fixed.