Implementation of search feature.