Always set path name, added some comments.