Add an option to make the path ends at the top row.