Search function implemented.