Fixed my type checking issues, only needed to change a few lines in driverSearch()