Basic Search function finished