Changed path to /tmp/debug.csv instead of relative path, which caused all manner of issues