Add search function.