Functions for Energy Management Systems