Modified path generation way.