Modify fuction for seracing favourites.