Fixed pred conf to be area limited. Optimized some bits of code.