Search function added