Created the Algo for Fav prompting and stuff