Switched from debugging output to file output