Update Union/Find Processing code