How BESS works