What are the functions of portable energy storage devices