Adjusted how energy is parsed.