Added real battery-level checking