PrintEnergy test client works.
Changing data structure to an array.