What does a Battery Management System actually do?