Removed unnecessary system energy calculation.