Added rest search functionality