Added a GetEnergy method to TDPs