Add Model function for Search