Change the interface of search function