Implemented deep discharge protection