Tidying path generation