Apply searching and appending