Changed how max equity factor is calculated.