Added fallback to nearest ancestor support