Created searchable fields function.