Splitting path functions to separate module