Finished implmentation of component search.