Modules related to energy management