Battery alarm improvement