Implementing energy management systems