Removed some unneccesary stuff from the search() function. why did I do that o-o