Implemented some helper functionality for searches.