Add variables to calculate derate