Implemented Search function.