Battery: code style