Added totalPower var and maximumKilowatt variable.