Pass path as parameter