Working

Wrote a universal method to get the “search” working
code is a little dirty in the switch statement but not too bad