Added energy tracking variable & moved config load