Battery management problem