Start of FindComponents, copied skeleton from FindPath and replacing functionality