Search function updated.