Changed rPowerReg initialization function