Code to automatically output files for KathiJo