First working search implementation