Trying better error handling search