Determine path