Never declared k_high and k_low, replacing with factor_high, factor_low