Searching for correct path