Change method of determining parent path.