Moved team finding to separate thread