Fast parent calculation.