paths accepts function that returns paths
Merge pull request #153 from ananthakumaran/paths-function

Paths accepts function that returns paths