Updating function structure for Search