Using energymon library