bms explained