Added a function which dumps the paths