Pass path around explicitly