Added setMaxPower method.