Use heights when searching path.