Got the energy tracking working per my preferences. Now i need to work on maxima detection. the past 3 attempts failed