Pass the output path as an argument