Finish with search function