WHAT ARE THE FUNCTIONS IN BATTERY ENERGY STORAGE SYSTEMS