FInished connected components