Starting search logic