Add path as a parameter to function run