Finish search function!